<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class ModifyCooperative extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('cooperative', function (Blueprint $table) {
            $table->unsignedTinyInteger('audit_status')->default(0)->comment('审核状态：1待审核， 2已审核，3驳回')->after('bind_wx_merchant');
            $table->string('audit_message', 600)->default('')->comment('审核驳回原因')->after('audit_status');
            $table->string('wx_mp_audit_message', 255)->default('')->comment('微信小程序审核结果')->after('audit_message');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('cooperative', function (Blueprint $table) {
            //
        });
    }
}
